package com.lening.community.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 16:25
 */
@TableName("house")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "房屋管理", description = "")
public class House implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "hid", type = IdType.ASSIGN_ID)
    private Long hid;               //房屋序号
    //private String communityName;   //社区名称
//    @ExcelProperty("楼宇名称id")

    @ExcelProperty("单元数id")
    private Long unitId;            //单元数id   楼宇管理的外键
    @ExcelProperty("房间号")
    private String roomNumber;      //房间号
    @ExcelProperty("公摊面积")
    private BigDecimal pulicArea;         //公摊面积
    @ExcelProperty("建筑面积")
    private BigDecimal buildArea;         //建筑面积
    @ExcelProperty("使用面积")
    private BigDecimal useArea;           //使用面积
    @ExcelProperty("房屋类型")
    private Long typeId;            //房屋类型  外键
    @ExcelProperty("房屋状态")
    private Long houseStatuId;      //房屋状态
    @ExcelProperty("房屋朝向")
    private String houseToward;     //房屋朝向
    @ExcelProperty("储藏室号")
    private Long storeRoomNum;      //储藏室号
    @ExcelProperty("车位号")
    private Long carNum;            //车位号
    @ExcelProperty("几室")
    private String shi;             //几室
    @ExcelProperty("几厅")
    private String ting;            //几厅
    @ExcelProperty("几卫")
    private String wei;             //几卫
    @ExcelProperty("是否删除")
    private Long deleteId;            //1删除   0未删
    @ExcelProperty("绑定业主")
    private Long yid;              //绑定业主
    @ExcelProperty("备注")
    private String remarks;        //备注
}
